package com.wealth.lottery.enums;
/**
 * 活动状态枚举
 * @author lihang 2016-06-27
 */
public enum LotteryPurposeEnums {
  CURRENCY(1,"通用活动"), REGION(2,"区域活动");
	
	private int value;
	private String comment;
	private LotteryPurposeEnums(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static LotteryPurposeEnums get(int value){
		for (LotteryPurposeEnums o:LotteryPurposeEnums.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}

}
